home *** CD-ROM | disk | FTP | other *** search
/ 400 MB of Top PC Shareware / 400 MB Of Top PC Shareware.iso / misc / acc_sec.txt < prev    next >
Text File  |  1993-07-01  |  26KB  |  524 lines

  1. File Info for SECURE.TXT
  2.  
  3. Date:  2/11/93
  4. Title: Additional Microsoft Access Security document
  5.  
  6. The purpose of this document is to explain the Microsoft Access security model.  The
  7. hope is that if the user understands the intricacies of security, and is conscientious,
  8. he will be able to safely and successfully use Microsoft Access security in his
  9. database.
  10.  
  11. ===================================================================
  12. DOWNLOADED FROM COMPUSERVE BY NBRINDLE@INDYCMS.IUPUI.EDU on 6/28/93
  13. ===================================================================
  14.  
  15. Microsoft Access Security
  16.  
  17.  
  18. Purpose
  19. -------
  20.  
  21. The purpose of this document is to explain the Microsoft Access security
  22. model.  The hope is that if the user understands the intricacies of
  23. security, and is conscientious, he will be able to safely and successfully
  24. use Microsoft Access security in his databases.
  25.  
  26. Examples of scenarios that have caused difficulty for people in the past
  27. have been set apart under the heading of Gotcha.  These are intended to
  28. give practical examples of common misunderstandings, and to explain why
  29. Microsoft Access security works the way it does.
  30.  
  31.  
  32. Overview
  33. --------
  34.  
  35. Microsoft Access security consists of 2 parts which are stored in different
  36. places.  Information regarding the permissions that users and groups have
  37. on the objects in a database is stored in the database itself.  This way
  38. the permission information travels with the .mdb file in which the objects
  39. exist.  All other security information is stored in system.mda.  This
  40. includes:  which Users & Groups exist;  which Groups each User belongs to;
  41. and User logon passwords.  In Microsoft Access parlance, a system.mda
  42. defines a "Workgroup".
  43.  
  44.  
  45. Logging On
  46. ----------
  47.  
  48. Each User and Group has associated with it a Security ID (SID).  The SID is
  49. a binary string that uniquely identifies the User or Group.  When a user
  50. logs on, Microsoft Access looks in the MSysAccounts table of the system.mda
  51. specified in the user's msaccess.ini for a user of the same name (case-
  52. insensitive).  If a user with the same name is found, it then validates the
  53. password (case-sensitive).  If the password matches, the SID of the user is
  54. retrieved and saved in an internal structure.  The password is only used to
  55. validate the user when he logs on.  Other than validating the identity of
  56. the user when he logs on, it has no effect on security.
  57.  
  58. By default, Microsoft Access first attempts to logon as the user Admin,
  59. with a blank password.  If this logon fails, the user is presented with the
  60. Logon dialog.  If a user name and password were specified on the command
  61. line (using the /USER and /PWD flags), Microsoft Access first tries to
  62. logon using that user name and password.  If this logon fails, the user is
  63. presented with the Logon dialog.  Once logged on, the user's SID is
  64. retrieved.  This SID is used for all subsequent operations within Microsoft
  65. Access.
  66.  
  67.  
  68. Users and Groups
  69. ----------------
  70.  
  71. Each user can be a member of 1 or more groups.  Users & Groups share the
  72. same namespace.  This means that you can't have both a group and user with
  73. the same name.
  74.  
  75. Microsoft Access defines 3 default groups:  Admins, Users, and Guests.
  76. Whenever a user is added to the system.mda, they are automatically given
  77. membership in the group Users, and they cannot be removed from the Users
  78. group.  There is one exception to this rule---the user Guest CAN be removed
  79. from the Users group.  The Admins group must always have at least one
  80. member.
  81.  
  82. Microsoft Access defines 2 users:  Admin and Guest.  The user Admin is a
  83. member of the Admins and Users groups.  The user Guest is a member of the
  84. Guests group (only).
  85.  
  86. The pre-defined groups (Admins, Users, and Guests) cannot be deleted.  The
  87. user Guest cannot be deleted, though the user Admin CAN (and should be to
  88. preserve security) if there is at least one other member of the Admins
  89. group.
  90.  
  91. Each user and group has a SID associated with it.  The SIDs of the Users
  92. and Guests groups, and of the Admin and Guest users, are the same in all
  93. Microsoft Access installations.  The SID of the Admins group, however, is
  94. unique across all Microsoft Access installations.  The SID of the Admins
  95. group is determined when Microsoft Access is installed.  This prevents
  96. someone who is in the Admins group of one system.mda from being able to
  97. have the permissions of any other Admins group.
  98.  
  99. Gotcha:  If you delete the user Admin, and then create another user
  100. named Admin, the SID of the new Admin will NOT be the same as the SID
  101. of the Admin that exists in an unsecure system.  This is because the
  102. Admin user that you create will have a different PIN that the Admin
  103. user that exists in a freshly-installed system.mda.
  104.  
  105. The SID of the Admins group is a function of the Setup disk serial number
  106. and the User and Company names given (case-insensitive).  Therefore, it is
  107. critical that the disks used to install Microsoft Access be kept in a safe
  108. place, and that the User and Company names be recorded.  In the event that
  109. the system.mda has to be recreated, the same installation disks must be
  110. used.
  111.  
  112. The SIDs of users and groups that you create are a function of the user or
  113. group name (case-sensitive) and Personal Identification Number (PIN) that
  114. you specify.  For this reason it is critical that the user and group names
  115. and their PINs be backed up.  If there is ever a need to recreate the
  116. system.mda, you will need the name and PIN of each user and group that was
  117. in the system.mda.  Note that by using different PINs, it possible for
  118. users and groups in different system.mda's to have the same name, but they
  119. will actually be different accounts as far as Microsoft Access security is
  120. concerned because they have different SIDs.
  121.  
  122. Gotcha:  When you setup Microsoft Access, the User and Company names
  123. are written to Disk #1.  If you then give anyone else your disks to
  124. setup from, Microsoft Access doesn't prompt for the User and Company
  125. name.  The Admins group in the system.mda that is created will have
  126. the same SID as the Admins group in your system.mda.  This means that
  127. anyone who uses that new system.mda will have all the permissions that
  128. you do, in any databases that you have permissions.  While this
  129. functionality wasn't intended as a form of copy protection, it is a
  130. good incentive to abide by the License Agreement.
  131.  
  132.  
  133. Permissions
  134. -----------
  135.  
  136. There are 2 types of permissions:  Explicit and Implicit.  Explicit
  137. permissions are those given directly to a user.  When they are granted, no
  138. other users are affected.  Implicit permissions are those granted to a
  139. group.  When they are granted, all users who are members of the group get
  140. the permissions of the group.  Implicit permissions belong to the group,
  141. not the users.  If a user is removed from the group, he no longer has the
  142. permissions of the group.  If the permissions of the group are changed, all
  143. users in the group are affected.
  144.  
  145. When a user attempts to do something, he will get the least restrictive
  146. permissions of:  1) all the groups in which he is a member (his Implicit
  147. permissions), and 2) those given directly to him (his Explicit
  148. permissions.)
  149.  
  150. In the Microsoft Access Permissions dialog, only the Explicit permissions
  151. are displayed.  This is a limitation of v.1.0.  To view implicit
  152. permissions, view the permissions of each group that the user is a member
  153. of.
  154.  
  155. The Admins group of the system.mda in use when the database was created
  156. will always have permission to change permissions on all objects in the
  157. database.  This permission cannot be taken away by anyone!!!  This
  158. permission remains even when all permissions have been revoked from the
  159. Admins group, and isn't displayed in the Permissions dialog.  It should
  160. therefore be obvious that it is very important to know and keep track of
  161. which system.mda was in use when the database was created.  To stress this
  162. point, italics will be used throughout this document where it comes up.
  163.  
  164. The Users group initially has Full permissions on all objects created in
  165. the database.  The Guests group has Read Definition and/or Read Data
  166. permissions on them, as appropriate for the object type.  Basically, Guests
  167. can read all objects and data, but can't change anything.
  168.  
  169. Permissions on an object can be changed by anyone having permissions to do
  170. so.  The following users have this permission:  members of the Admins group
  171. of the system.mda in use when the database was created;  the creator of the
  172. database (it's owner);  the creator of the object (it's owner); and anyone
  173. who has Full permissions on the object, either explicitly or implicitly.
  174.  
  175. Gotcha:  Jane gives Joe a database that she created.  Joe is a member
  176. of the Users group, and no other groups.  He is using a different
  177. system.mda (the SID of the Admins group of his system.mda is different
  178. from the SID of the Admins group in Jane's system.mda).  Jane's
  179. database is "unsecure", meaning that the Users group has Full
  180. permission on all objects.  Joe revokes Full permissions from the
  181. Users group on a Table1.  From that point forward, Joe can no longer
  182. change permissions on that Table1.  If he also revoked Read Data
  183. permissions, he has prevented himself from being able to read Table1,
  184. because he no longer has permission to do so.  For both these cases,
  185. he just revoked his own permissions on the Table1.  Because Joe isn't
  186. a member of the Admins group of the system.mda in use when the
  187. database was created, and because he didn't create Table1, he's
  188. completely locked out of Table1 until Jane (using her own system.mda)
  189. gives him permissions again.
  190.  
  191. All users always have permission to open any database and create objects in
  192. it.  Microsoft Access relies on operating system security to prevent a user
  193. from being able to open a database.
  194.  
  195. Gotcha:  Even if a user doesn't have an account in your system.mda, he
  196. can use any other system.mda in which he has an account to logon to
  197. Microsoft Access.  Then he can open any database that he can get to
  198. through the operating system.  Once the database is open, he can see
  199. which objects exist, and create new objects.  There is no method to
  200. prevent creation of objects.
  201.  
  202. It is possible for a user to have permissions on an object in a database,
  203. and not be able to see those permissions in the Permissions dialog.  This
  204. will happen if the user was assigned permissions in the database and then
  205. was deleted from the system.mda.  The permissions given to the user are
  206. stored in the .mdb, and aren't removed when the user is removed.  The
  207. following steps will show these permissions:
  208.  
  209. 1. Set the Show System Objects option to Yes
  210. 2. Give yourself Read Data permissions on the MSysACEs table
  211.      If you don't have permissions to do this, you're not a member of the
  212.      Admins group of the system.mda in use when the database was created,
  213.      and you didn't create the database.
  214. 3. Attach to or import the MSysAccounts table from the system.mda
  215.      currently in use
  216.      If you don't have permissions to do this, you're not a member of the
  217.      Admins group of the system.mda currently in use.
  218. 4. Run this query:
  219.      SELECT DISTINCTROW MSysObjects.Name AS Object, MSysAccounts.Name As
  220.      UserGroup FROM MSysACEs, MSysAccounts, MSysObjects, MSysACEs LEFT JOIN
  221.      MSysAccounts ON MSysACEs.SID = MSysAccounts.SID, MSysACEs INNER JOIN
  222.      MSysObjects ON MSysACEs.ObjectId = MSysObjects.Id;
  223.  
  224. This will show the names of all users and groups who have permissions on
  225. all objects in the database.  If the UserGroup field is blank, it means
  226. that the user or group doesn't exist in your system.mda, yet still has some
  227. kind of permissions on that object.  Disclaimer:  The query above works
  228. fine in Microsoft Access 1.0.  However, the Microsoft Access system tables
  229. (MSys*) are officially "undocumented", and are subject to change in future
  230. versions.
  231.  
  232.  
  233. Ownership
  234. ---------
  235.  
  236. Ownership is a very important part of Microsoft Access' security model.
  237. The SID of the user who creates a database is considered the "owner" of the
  238. database.  He will always have permission to give himself Full Permission
  239. on any object in the database, regardless of who creates the object, or
  240. what permissions are on the object.  He will therefore also always have
  241. permissions to give anyone else permissions on any object in the database.
  242.  
  243. The SID of the user who creates an object is considered the "owner" of the
  244. object.  He will always have permission to change permissions on the
  245. object, even if the database owner has revoked his permissions on the
  246. object.
  247.  
  248. The Admins group of the system.mda in use when the database was created
  249. will always have permissions to change permissions on any object in that
  250. database.
  251.  
  252. The only way to transfer ownership of a database or object is to recreate
  253. it.  For databases, this means doing a File New Database and importing all
  254. the objects from the old database.  Table relationships will have to be
  255. recreated after importing, as they're not preserved when importing or
  256. exporting.
  257.  
  258. For objects, ownership can be transferred by importing or exporting the
  259. object, or by copying and pasting it.  These operations essentially create
  260. a brand new object, one that is completely unsecured.  Note that for both
  261. of these situations, the person doing the importing/exporting or
  262. copy/pasting must have permission to read the objects in the first place.
  263.  
  264. Gotcha:  As mentioned above, the Admin and Guest users have the same
  265. SID in all system.mda's.  It is therefore critical to security that
  266. the Admin and Guest users NOT create (are the owner of) any objects or
  267. databases.  If they do, anyone who has Microsoft Access and can get to
  268. the database .mdb file can open it and have Full permission on the
  269. objects created by Admin or Guest, and all objects in the database if
  270. either of these users created the database.
  271.  
  272.  
  273. The "Hole"
  274. ----------
  275. By default, the Users and Guests groups have Read Data permissions on the
  276. MSysObjects table.  For various technical reasons, this is necessary to
  277. allow the user to do File Load From Query in the Filter window.
  278.  
  279. The astute reader will see that MSysObjects contains a field named "Owner",
  280. and he will figure out that it contains the SID of the owner of each
  281. object.  The astute reader will also realize that the SID field in the
  282. MSysAccounts table of system.mda contains his own SID.  Because everyone
  283. has Read Data permissions on MSysObjects, it would be possible to read the
  284. SID of the owner of any given object, and replace his SID in MSysAccounts
  285. with it.  The next time he logged on, he would have the SID of the owner of
  286. the object, and all rights associated with it.  He could change permissions
  287. on the objects, and therefore do anything he wanted to with it.
  288.  
  289. SIDs are binary fields.  When MSysObjects is browsed, the binary fields are
  290. truncated at the first null terminator (ASCII 0).  Additionally, any
  291. characters whose ASCII values are below 32 will display as garbage.  All of
  292. this essentially prevents someone from being able to edit or copy and paste
  293. this value directly.  However, it would be a relatively simple matter to
  294. change your own SID using Microsoft Access Basic code or a query.
  295.  
  296. Fortunately, there is a way to patch this security hole:
  297.  
  298. 1.  Make a backup of you database!!!
  299. 2.  Open your database
  300. 3.  Set the Show System Objects option to Yes
  301. 4.  Select Permissions from the Security menu
  302. 5.  Give the Users group Read Definition permissions on MSysObjects
  303. 6.  Revoke Read Definition permissions on MSysObjects from the Users group
  304. 7.  Repeat steps 5 & 6 for the Guests group
  305.  
  306. This will prevent someone from reading the SID from the Owner field and
  307. writing it into his own MSysAccounts table.  The downside is that when
  308. people who aren't in the Admins group (of the system.mda in use when the
  309. database was created) attempt to use the "Load From Query" functionality
  310. while in MyApp.mdb, they will get an error that says "No permission for
  311. 'MSysObjects'".  The only people who will be able to use the "trick" above
  312. are the person who created the database, and anyone who is a member of the
  313. Admins group of the system.mda in use when the database was created.  It is
  314. not recommended that you repeat steps 5 & 6 for them.
  315.  
  316. Needless to say, this hole will be plugged in a future version of Microsoft
  317. Access.  Disclaimer:  Again, the Microsoft Access system tables (MSys*) are
  318. officially "undocumented", and are subject to change in future versions.
  319. Don't count on any information regarding them to be applicable to anything
  320. but Access version 1.0.
  321.  
  322.  
  323. The "Run with Owner's Permissions" Query Property
  324. -------------------------------------------------
  325.  
  326. Microsoft Access queries have an property called "Run with Owner's
  327. Permissions" (RWOP).  This is in the Query Properties dialog.  If this
  328. property is checked, the permissions of the owner of the query are the only
  329. permissions that are considered when attempting to access tables or queries
  330. that the query is dependent on.
  331.  
  332. Gotcha:  Joe has Read Definition permissions on the Salary table, but
  333. not Read Data.  Joe creates Query1, which is based on the Salary
  334. table.  Joe has left RWOP turned on.  Joe is unable to execute the
  335. query, because he doesn't have Read Data permissions on the Salary
  336. table.  This much is intuitive.  Jane created the Salary table, and
  337. has Full permission on it.  Jane tries to execute Query1.  She cannot,
  338. because the RWOP option of Query1 is turned on, and the owner of the
  339. query (Joe) doesn't have Read Data permissions on the Salary table.
  340. While this may not be entirely intuitive, it is correct functionality.
  341.  
  342. Only the owner (creator) of a query may save it if the RWOP property is
  343. turned on.  Even the database owner or members of the Admins group of the
  344. system.mda in use when the database was created can't save a query created
  345. by another user if the RWOP property is turned on.  It would be a security
  346. breach to allow them to.  Note though, that anyone with Modify Definition
  347. permissions on the query can uncheck RWOP and successfully save the query.
  348. This may lead to other complications if other people were using the query
  349. and depending on RWOP being there.
  350.  
  351. This functionality extends to the QueryDef object as well.  Only the owner
  352. of a query can change the query using the "Set Q.SQL = MySQLString$" syntax
  353. if MySQLString$ ends with "WITH OWNER ACCESS OPTION;".
  354. Common Scenarios
  355.  
  356.  
  357. Securing an Existing Database
  358. -----------------------------
  359.  
  360. You've written an application using Microsoft Access---call it MyApp.mdb.
  361. You've created all the objects while you were logged on as Admin (the
  362. default.)  Now you want to "secure" the database.  Here are the steps to
  363. follow to do so:
  364.  
  365. 1.  Make a backup of MyApp.mdb!!!
  366. 2.  Choose Change Password from the security menu and give a password to
  367.         the user Admin.
  368. 3.  Create a new user and add him to the Admins group.  For this
  369.         example, the user is Joe.
  370. 4.  Exit Microsoft Access and restart it, giving Joe as the user when
  371.         the Logon dialog is given.
  372. 5.  Create a new database---call it MyApp2.mdb
  373.         This will establish Joe as the database owner.
  374. 6.  Import all the objects from MyApp.mdb into MyApp2.mdb
  375.         This will establish Joe as owner of all the objects.
  376. 7.  If you had any table relationships, recreate them in MyApp2.mdb
  377. 8.  Revoke Full permissions from the Users group on all objects, leaving
  378.         them with whatever other permissions you like.  You may also want to
  379.         revoke permissions from the Guests group.
  380. 9.  If desired, create any of your own groups and users, and give them
  381.         appropriate permissions on all the objects.
  382. 10.  Rename MyApp.mdb to MyApp.old and rename MyApp2.mdb to MyApp.mdb.
  383.  
  384. Your database is now secure.  The only people who can get into the objects
  385. in MyApp.mdb are those you gave permissions to in steps 8 & 9, and anyone
  386. who is a member of the Admins group of your system.mda.
  387.  
  388.  
  389. Unsecuring a Secured Database
  390. -----------------------------
  391.  
  392. You've followed the steps under Securing an Existing Database, above.  Joe
  393. is the owner of the database and all objects in it.  The Admins group of
  394. Joe's system.mda has permissions to change permissions on any object in the
  395. database.  The goal here is to make the user Admin the owner of the
  396. database and all objects in it, and to give the Users group Full
  397. permissions on all objects.  Remember, the SIDs of the user Admin and the
  398. Users group are constant in all system.mda's, so this will effectively give
  399. everyone Full permissions on all objects in the database, and make them the
  400. database owner as well.
  401.  
  402. 1.  Make a backup of MyApp.mdb!!!
  403. 2.  Boot Microsoft Access as a member of the Admins group of the
  404.         system.mda in use when MyApp.mdb was created.
  405. 3.  Give the Users group Full permissions on all objects in the
  406.         database.
  407. 4.  Edit your msaccess.ini file so that SystemDB points to a
  408.         system.mda in which no users exist.
  409. 5.  Exit Microsoft Access and restart it logging on as the user Admin.
  410.         Note that this Admin MUST be the same Admin that exists in the
  411.         "clean" system.mda that is created when you setup Microsoft Access
  412.         so that the SID is correct.
  413. 6.  Create a new database (call it MyApp2.mdb)
  414. 7.  Import all the objects from MyApp.mdb into MyApp2.mdb
  415.  
  416. Your database is now completely unsecured.  Anyone who can to the
  417. MyApp2.mdb file have Full permissions on all the objects in it.
  418.  
  419.  
  420. Protecting Your Code
  421. --------------------
  422.  
  423. You've written a bunch of Microsoft Access Basic code that you want to
  424. distribute, perhaps as a Library Database, but you don't want anyone to be
  425. able to read your code.  The modules are in MyApp.mdb, and were all created
  426. while you were logged on as Admin.  Assuming that you're starting from a
  427. completely unsecure configuration, here are the steps to secure the code:
  428.  
  429. 1.  Make a backup of MyApp.mdb!!!
  430. 2.  Choose Change Password from the security menu and give a password to
  431.         the user Admin.
  432. 3.  Create a new user and add him to the Admins group.  For this
  433.         example, the user is Joe.
  434. 4.  Exit Microsoft Access and restart it, giving Joe as the user when
  435.         the Logon dialog is given.
  436. 5.  Open MyApp.mdb
  437. 6.  For each module you want secured, do the following:
  438.         a.  Open the module in design mode
  439.         b.  File Save Text to save the module to a text file
  440.         c.  File Close
  441.         d.  Delete the module
  442.         e.  Create a new module
  443.         f.  File Load Text to bring the text file from step b back in
  444.         g.  File Save, giving the original module name
  445.                 This will establish Joe as owner of  the modules.
  446. 7.  Revoke all permissions from the Users and Guests groups on all the
  447.         modules.  All users will still be able to execute the code---there's
  448.         no way to prevent someone from being able to execute code.
  449.  
  450. Your modules are now secured so that nobody except Joe and members of the
  451. Admins group of the system.mda in use when MyApp.mdb was created can read
  452. the modules.
  453.  
  454.  
  455. Moving a Database to Another System.mda
  456. ---------------------------------------
  457.  
  458. You are Joe, and have written MyApp.mdb and want to give it to Jane who is
  459. using a different system.mda.  You want Jane to have complete
  460. administrative authority over your database.  The problem is this:  The
  461. Admins group of Jane's system.mda doesn't have any permissions on anything
  462. in MyApp.mdb.
  463.  
  464. There are 2 variations of this scenario:
  465.  
  466. Variation #1:  MyApp.mdb is completely unsecured (the Users group has
  467. Full permissions on everything).
  468.  
  469. The situation here is as follows...  The user Admin created MyApp.mdb
  470. and all the objects in it, and is therefore the owner of everything.
  471. The Admins group of Joe's system.mda has permissions to change
  472. permissions on all the objects in MyApp.mdb.  The Users group (which
  473. has the same SID in all Microsoft Access installations) has Full
  474. permissions on all objects in MyApp.mdb.  Jane's system.mda is
  475. unsecure (the Admin password is blank, and there are no user accounts
  476. or groups.)
  477.  
  478. To give MyApp.mdb to Jane, and have her get complete administrative
  479. authority over it, follow these steps:
  480.  
  481. 1.  Make a backup of MyApp.mdb!!!
  482. 2.  Boot Microsoft Access using Jane's system.mda.
  483. 3.  Create a new database---call it MyApp2.mdb
  484.         This will establish Admin as the database owner.
  485. 4.  Import all the objects from MyApp.mdb into MyApp2.mdb
  486.         This will establish the user Admin as owner of all the objects, and
  487.         give the Admins group of Jane's system.mda permission to change
  488.         permissions on all objects created in MyApp2.mdb.
  489. 5.  If you had any table relationships, recreate them in MyApp2.mdb
  490. 6.  Rename MyApp.mdb to MyApp.old and rename MyApp2.mdb to MyApp.mdb.
  491.  
  492. Variation #2:  MyApp.mdb is secured using the steps under Securing an
  493. Existing Database.
  494.  
  495. To give MyApp.mdb to Jane, and have the Admins group of her system.mda
  496. get complete administrative authority over it, follow these steps:
  497.  
  498. 1.  Follow the instructions under Unsecuring a Secured Database, above
  499. 2.  Follow the instructions under Variation #1, above.
  500.  
  501. For all intents and purposes, Jane is now the "owner" of MyApp.mdb and all
  502. objects in it, and Joe is just another user.  Under both these scenarios,
  503. you can include steps 1-4 and 8-10 of Securing an Existing Database, above,
  504. as necessary to make the database secured under Jane's system.mda.
  505.  
  506.  
  507. Miscellaneous Tidbits
  508. ---------------------
  509.  
  510. The User() function in Microsoft Access Basic returns the name of the
  511. current user.  This is not the same as the SID.  As mentioned under Users
  512. and Groups, above, it is possible for 2 users in different system.mda's to
  513. have the same name but different SIDs.
  514.  
  515. Gotcha:  This can cause a problem if 2 people that are using different
  516. system.mda's have the same name but different PINs (and therefore
  517. different SIDs).  For example, if you are using the User() function to
  518. log activity, and both are using your database, the activity logging
  519. could be inaccurate.  These are actually 2 different accounts, even
  520. though their user names are the same.
  521.  
  522.  
  523.  
  524.